﻿@using QDT.Core
@using QDT.Core.Projects
@using QDT.MVC
@model QDT.Core.Projects.Project

@{
    var money = Model.BorrowAmount.ToMoney().ToString();
    var agency = Html.F().GetAgency(Model.Parent.AgencyId);
}

<div class="p-box">
    <span style="font-size: 14px;">
        <span class="ui-badge ui-badge-red">@Model.Parent.Industry</span>
        @Model.Parent.IndustryDetail
    </span>
    <span style="float: right; font-size: 14px; margin-left: 3px; padding-right: 80px;">
        <div style="float: left;"><img style="width: 20px; height: 20px;" src="@(agency==null? Url.Content("~/Content/Default/Images/ziyaicon.jpg") : agency.Logo)" /></div>
        @if (agency != null)
        {
@*            <a href="@Url.Action("GotoAction", "Agency", new { agencyid = @Model.Parent.AgencyId })">@Model.Parent.Warrant</a>*@
            <a href="javascritp:;">@Model.Parent.Warrant</a>
        }
        else
        {
            @Model.Parent.Warrant
        }
      
    </span>
    <h1 class="ui-box-title" style="padding-top: 26px;">@Model.Name</h1>
</div>
<div class="p-box p-box-top p-table">
    <table style="width: 100%;">
        <tr>
            <td style="padding-bottom: 6px; width: 45%;">
                <span style="color: #ff932d; font-size: 18px;">@money.Substring(0, money.Length - 3)</span><span style="font-size: 14px;">.00</span>
            </td>
            <td style="width: 40%">
                <span style="color: #ff932d; font-size: 18px;">@Model.Rate</span><span  style="font-size: 14px;">.00%</span>
            </td>
            <td style="width: 15%">
                <span style="color: #ff932d; font-size: 18px;">@Model.RepayTime</span><span  style="font-size: 14px;">@(Model.RepayTimeType == 0 ? "天" : "个月")</span>
            </td>
        </tr>
        <tr style="color: #c0c0c0;">
            <td>融资金额</td>
            <td>预期年化收益率</td>
            <td>借款期限</td>
        </tr>
    </table>
</div>
<div class="p-box p-box-top p-table">
    <table class="table">
        <tr>
            <td style="width: 45%;" class="font-size14">
                <div style="float: left;"><img style="width: 22px; height: 22px;" src="@Url.Content("~/Content/Default/Images/p-huan.jpg")" /></div>
                每月付息，到期还本
            </td>
            <td style="width: 55%" class="font-size14">
                <i class="iconfont" style="color: #27ae60;" title="">󰀰</i>
                保障范围：本金+利息
            </td>
        </tr>
    </table>
</div>
<div class="p-box-top p-table font-size14">
    <div style="line-height: 22px; padding: 10px 0">
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        @Model.Parent.Description.ToHtml()
    </div>
</div>